﻿{%extends "base.html"%}
{%block body%}
  <body>
    <div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
      <div id="sidebar">
        <div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
          <h2 id="sidebar-title"><a href="/">Condominium</a></h2>
          <h3 id="sidebar-title"><a href="/">Management System</a></h3>
	   
          <div id="profile-links">
            {% if user.is_authenticated %}
              <a class="nav-top-item no-submenu" href="{% url django.contrib.auth.views.logout %}">Logout</a>
            {% else %}
              <a href="{% url django.contrib.auth.views.login %}">Login</a>
            {% endif %}
          </div>
                		
          <ul id="main-nav">  
            {%if user.is_authenticated %}
              <li><a href="/" class="nav-top-item no-submenu">Profile</a></li>
              <li><a href="/meusPagamentos" class="nav-top-item no-submenu ">My Payments</a></li>
              <li><a href="/condominos" class="nav-top-item no-submenu ">Condominiums</a></li>
              <li><a href="/fraccoes" class="nav-top-item no-submenu ">Fractions</a></li>
              <li><a href="/fornecedores" class="nav-top-item no-submenu ">Suppliers</a></li>
              <li><a href="/despesas" class="nav-top-item no-submenu ">Expenses</a></li>
              <li><a href="/receitas" class="nav-top-item no-submenu ">Profits</a></li>
              <li><a href="/saldo" class="nav-top-item no-submenu ">Balance</a></li>
              <li><a href="/documentos" class="nav-top-item no-submenu ">Documents</a></li>
              <li><a href="#contacts" rel="modal" class="nav-top-item no-submenu ">Condominium Contact</a></li>
            {%endif%}
          </ul> <!-- End #main-nav -->
        </div>
      </div> <!-- End #sidebar -->
      <div id="main-content"> <!-- Main Content Section with everything -->
        <noscript> <!-- Show a notification if the user has disabled javascript -->
          <div class="notification error png_bg">
            <div>Javascript is disabled or is not supported by your browser.</div>
          </div>
        </noscript>
        {% if messages %}
    {% for message in messages %}
<div class="notification information png_bg">
        <div>{{ message }}</div>
      </div>
    
    {% endfor %}
{% endif %}

        {%block content%}{%endblock%}
			
        <div class="clear"></div>

        {%if user.is_authenticated %}
          <div id="contacts" style="display: none">	
            <h2>Condominium Contacts</h2>
	    <div>
	      <h3>Demo Condominium</h3>
	      <p> Street Demo Condominium<br><br><b>email</b>Condominium@demoCondominium.com<p>
            </div>
          </div>
        {%endif%}
        <div id="footer">
          <small>&#169; Copyright 2011 Sérgio Araújo | <a href="#">Top</a></small>
        </div><!-- End #footer -->
      </div> <!-- End #main-content -->
    </div>
  </body>
{%endblock%}
